package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 drug
 * 
 * @author ruoyi
 * @date 2024-04-28
 */
public class Drug extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String drugName;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String provider;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String batch;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long price;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String scale;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long margin;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long store;

    /** 生产日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date produceDatetime;

    /** 保质期 */
    @Excel(name = "保质期")
    private String expireTime;

    /** 商品类型 */
    @Excel(name = "商品类型")
    private String drugType;

    /** 生产地址 */
    @Excel(name = "生产地址")
    private String location;

    /** 药品描述 */
    @Excel(name = "药品描述")
    private String drugDesc;

    /** 药品功效 */
    @Excel(name = "药品功效")
    private String func;

    /** 疾病 */
    @Excel(name = "疾病")
    private String disease;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDrugName(String drugName) 
    {
        this.drugName = drugName;
    }

    public String getDrugName() 
    {
        return drugName;
    }
    public void setProvider(String provider) 
    {
        this.provider = provider;
    }

    public String getProvider() 
    {
        return provider;
    }
    public void setBatch(String batch) 
    {
        this.batch = batch;
    }

    public String getBatch() 
    {
        return batch;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setScale(String scale) 
    {
        this.scale = scale;
    }

    public String getScale() 
    {
        return scale;
    }
    public void setMargin(Long margin) 
    {
        this.margin = margin;
    }

    public Long getMargin() 
    {
        return margin;
    }
    public void setStore(Long store) 
    {
        this.store = store;
    }

    public Long getStore() 
    {
        return store;
    }
    public void setProduceDatetime(Date produceDatetime) 
    {
        this.produceDatetime = produceDatetime;
    }

    public Date getProduceDatetime() 
    {
        return produceDatetime;
    }
    public void setExpireTime(String expireTime) 
    {
        this.expireTime = expireTime;
    }

    public String getExpireTime() 
    {
        return expireTime;
    }
    public void setDrugType(String drugType) 
    {
        this.drugType = drugType;
    }

    public String getDrugType() 
    {
        return drugType;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setDrugDesc(String drugDesc) 
    {
        this.drugDesc = drugDesc;
    }

    public String getDrugDesc() 
    {
        return drugDesc;
    }
    public void setFunc(String func) 
    {
        this.func = func;
    }

    public String getFunc() 
    {
        return func;
    }
    public void setDisease(String disease) 
    {
        this.disease = disease;
    }

    public String getDisease() 
    {
        return disease;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("drugName", getDrugName())
            .append("provider", getProvider())
            .append("batch", getBatch())
            .append("price", getPrice())
            .append("scale", getScale())
            .append("margin", getMargin())
            .append("store", getStore())
            .append("produceDatetime", getProduceDatetime())
            .append("expireTime", getExpireTime())
            .append("drugType", getDrugType())
            .append("location", getLocation())
            .append("drugDesc", getDrugDesc())
            .append("remark", getRemark())
            .append("func", getFunc())
            .append("disease", getDisease())
            .toString();
    }
}
